package com.itnoob.component;

import com.itnoob.domain.Request;
import com.itnoob.domain.User;

public interface AccessDecisionVoter {
    // 投票结果的常量
    int ACCESS_GRANTED = 1;
    int ACCESS_ABSTAIN = 0;
    int ACCESS_DENIED = -1;

    // 投票方法，根据用户和请求判断是否授权
    int vote(User user, Request request);
}